{% extends 'base.html' %}
{% block stylesheet %}
{{ block.super }}
{% endblock%}

{% block javascript %}
{{ block.super }}
{% endblock%}


{% block content %}
<h2>Class Time Detail</h2>

<div id="navi">
    <ul>
        <li><a href="{% url school_detail classproperty.school.id %}">school deatil</a></li>
        <li><a href="{% url classproperty_change classproperty.id %}">class time change</a></li>
        <li><a href="{% url eteacher_exchange classproperty.id %}">eteacher change</a></li>
    </ul>
</div>

<table>

    <tr>
        <td>{{ classproperty.grade }}</td>
        <td>{{ classproperty.day }}</td>
        <td>{{ classproperty.start_time }}</td>
        <td>{{ classproperty.end_time }}</td>
        {% if classproperty.eteacher %}
        <td><a href="{% url eteacher_detail classproperty.eteacher.id %}">{{ classproperty.eteacher }}</a></td>
        {% endif %}
        <td>{{ classproperty.textbook }}</td>
        <td><a href="{% url school_detail classproperty.school.id %}">{{ classproperty.school.name }}</a></td>
        <td><a href="">{{ classproperty.kteacher }}</a></td>
        <td>{{ classproperty.type }}</td>
    </tr>
</table>

<a href="{% url oneclass_create_in_bulk classproperty.id %}">create class</a>
{% endblock %}